package com.anda.logistics.dao;

import java.util.List;

import com.anda.logistics.model.RoleMenuRights;
import com.anda.logistics.model.SystemRole;
import com.anda.logistics.model.SystemUser;
import com.anda.logistics.util.JQGridPager;
import com.anda.logistics.vo.UserRoleVo;

public interface SystemRoleDao {

	public void save(SystemRole systemRole);

	public List<SystemRole> getPagerList(JQGridPager pager);

	public long getPagerRecords(JQGridPager pager);

	public void update(SystemRole sr);

	public SystemRole getOneById(int parseInt);

	public void delete(SystemRole sr);

	public List<RoleMenuRights> getPagerList(JQGridPager pager, String tableName);

	public long getPagerRecords(JQGridPager pager, String tableName);

	public void save(RoleMenuRights rmr);

	public void update(RoleMenuRights rmr);

	public RoleMenuRights getOneRoleMenuById(int parseInt);

	public void delete(RoleMenuRights rmr);

	public int checkUser(SystemUser su);

	public List<UserRoleVo> getUserRolePagerList(JQGridPager pager, SystemUser su);

	public long getUserRolePagerRecords(JQGridPager pager, SystemUser su);

	public long getGrantedUserRoleCount(long userId, long roleId);

	public void grantRole(long userId, long roleId);

	public SystemUser getSystemUser(String userId);

}
